package com.rem.aop.annotationAop;


import org.springframework.stereotype.Service;

/**
 * 简单实现
 *
 * @author Rem
 * @date 2023/3/6
 */
@Service
public class CalculatorImpl implements Calculator {

    @Override
    public int add(int i, int j) {
       // int a= 1/0;
        int result = i + j;
        System.out.println("加法 result = " + result);
        return result;
    }

    @Override
    public int sub(int i, int j) {
        int result = i - j;
        System.out.println("减法 result = " + result);
        return result;
    }

}
